home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games: Greatest Hits 1996 / Amiga Games: Greatest Hits 1996.iso / archive / userbox / publicdomain / yagin.lha / YAGIN / Examples / startnet_4.0D < prev    next >
Text File  |  1996-07-06  |  781b  |  41 lines

  1.  
  2. ; $VER: StartNet AmiTCP 4.0Demo 1.0 (5.7.95) Arndt van der Molen
  3.  
  4. online ppp0
  5.  
  6. ; log in
  7. echo
  8. echo login: newbie
  9.  
  10. AmiTCP:bin/login -f newbie
  11. AmiTCP:bin/umask 022
  12. AmiTCP:AmiTCP
  13. WaitForPort AMITCP
  14.  
  15. ; Configure loop-back device
  16. AmiTCP:bin/ifconfig lo0 localhost
  17.  
  18. ; Configure ppp0
  19. AmiTCP:bin/ifconfig ppp0 $ppp0iplocal $ppp0ipremote
  20.  
  21. ; Add route to this host
  22. AmiTCP:bin/route add $ppp0iplocal localhost
  23.  
  24. ; Add default route to ISP
  25. AmiTCP:bin/route add default $ppp0ipremote
  26.  
  27. setenv HOSTNAME `AmiTCP:bin/hostname`
  28.  
  29. Assign TCP: Exists > NIL:
  30. IF Warn
  31.   Mount TCP: from AmiTCP:devs/Inet-Mountlist
  32. EndIf
  33.  
  34. ; Start the internet `super server'
  35. run AmiTCP:bin/inetd
  36.  
  37. ; Start the user configurable programms if available
  38. If Exists AmiTCP:db/User-Startnet
  39.   Execute AmiTCP:db/User-Startnet
  40. EndIf
  41.